home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / setup_xampp.bat < prev    next >
DOS Batch File  |  2004-12-20  |  509b  |  26 lines

  1. @ECHO OFF
  2.  
  3. if exist php\php4\phpcli.exe GOTO Normal
  4. if exist php\php.exe GOTO Unnormal
  5. if not exist php\php.exe GOTO Abort
  6.  
  7. :Abort
  8. echo Sorry ... cannot find php cli!
  9. echo Must abort these process!
  10. pause
  11. GOTO END
  12.  
  13. :Unnormal
  14. set PHP_BIN=php\php.exe
  15. set CONFIG_PHP=install\install.php
  16. %PHP_BIN% -n -d output_buffering=0 %CONFIG_PHP%
  17. GOTO END
  18.  
  19. :Normal
  20. set PHP_BIN=php\php4\phpcli.exe
  21. set CONFIG_PHP=install\install.php
  22. %PHP_BIN% -n -d output_buffering=0 %CONFIG_PHP%
  23. GOTO END
  24.  
  25. :END
  26. pause